package day9;

import day4.BankAcc;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;

/**
 * @author oldliu
 * @since 1.0
 */
public class WriteObject {
    public static void main(String[] args) {
        BankAcc b=new BankAcc("hf999","陈逸","22222","合肥",100000.0F);
        try {
            ObjectOutputStream oout=new ObjectOutputStream(new FileOutputStream("D:\\Documents\\桌面\\44443.txt"));
            oout.writeObject(b);
            oout.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
